import request from '@/utils/request'

// 查询申请赠课列表
export function listApply (query) {
  return request({
    url: '/manager/apply/list',
    method: 'get',
    params: query
  })
}

// 查询申请赠课详细
export function getApply (id) {
  return request({
    url: '/manager/apply/' + id,
    method: 'get'
  })
}

// 新增申请赠课
export function addApply (data) {
  return request({
    url: '/manager/apply',
    method: 'post',
    data: data
  })
}

// 修改申请赠课
export function updateApply (data) {
  return request({
    url: '/manager/apply',
    method: 'put',
    data: data
  })
}

// 删除申请赠课
export function delApply (id) {
  return request({
    url: '/manager/apply/' + id,
    method: 'delete'
  })
}
